<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar2">项目获奖情况（附件中提供相应的证明材料）</div>
	<table  id="awardInfo" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%;">选择</th>
						<th class="TblHead" align="center"  width="5%;">序号</th>
						<th class="TblHead" align="center"  width="10%;">项目名称</th>
						<th class="TblHead" align="center"  width="10%">奖种</th>
						<th class="TblHead" align="center"  width="10%;">等级</th> 
						<th class="TblHead" align="center"  width="10%">年份</th>
						<th class="TblHead" align="center"  width="28%">主要完成人<br/>（按获奖排名顺序填列，多个以；号隔开）</th>
						<th class="TblHead" align="center"  width="22%;">其中：参与该项目人员</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="awardradio" >
						</td>
						<td align="center">
							<span name="awards|award[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">
							<input name="awards|award[0]|name" label="项目名称"   class="required input_css maxlength:50" style="width:80%;" maxlength="50"/>
 						</td>
						<td align="center">
							<input name="awards|award[0]|type" label="奖种"   class="required input_css maxlength:50" style="width:80%;" maxlength="50"/>
 						</td>
						<td align="center">
							<input name="awards|award[0]|level" label="等级"   class="required input_css maxlength:50" style="width:80%;" maxlength="50"/>
 						</td>
						<td align="center">
							<input name="awards|award[0]|year" label="年份"   class="required input_css year" onfocus="InitInput.setNumber(this,4,0,0);" style="width:80%;text-align: right;"/>
						</td> 
						<td align="center">
							<input name="awards|award[0]|main_members" label="主要完成人"   class="required input_css maxlength:100"  style="width:80%;" maxlength="100"/>
						</td> 
						<td align="center">
							<input name="awards|award[0]|members" label="其中：参与该项目人员"   class="required input_css  maxlength:100"  style="width:80%;" maxlength="100"/>
						</td> 
						 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/awards/award" var="award">
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
								<input type="radio" class="radiobutton" name="awardradio" >
							</td>
							<td align="center">
								<span name="awards/award[${flag}${index}]@seq_no" >
									<x:out select="$award/@seq_no"/>
								</span> 
							</td>
						 <td align="center">
							<input name="awards/award[${flag}${index}]/name" label="项目名称"  value="<x:out select="$award/name"/>" class="required input_css maxlength:50" style="width:80%;" maxlength="50"/>
 						</td>
						<td align="center">
							<input name="awards/award[${flag}${index}]/type" label="奖种" value="<x:out select="$award/type"/>"   class="required input_css maxlength:50" style="width:80%;" maxlength="50"/>
 						</td>
						<td align="center">
							<input name="awards/award[${flag}${index}]/level" label="等级"  value="<x:out select="$award/level"/>"  class="required input_css maxlength:50" style="width:80%;" maxlength="50"/>
 						</td>
						<td align="center">
							<input name="awards/award[${flag}${index}]/year" label="年份"  value="<x:out select="$award/year"/>"  class="required input_css year" onfocus="InitInput.setNumber(this,4,0,0);" style="width:80%;text-align: right;"/>
						</td> 
						<td align="center">
							<input name="awards/award[${flag}${index}]/main_members" label="主要完成人"  value="<x:out select="$award/main_members"/>" class="required input_css  maxlength:100"  style="width:80%;" maxlength="100"/>
						</td> 
						<td align="center">
							<input name="awards/award[${flag}${index}]/members" label="其中：参与该项目人员"  value="<x:out select="$award/members"/>"  class="required input_css  maxlength:100"  style="width:80%;" maxlength="100"/>
						</td>  
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					</tbody>
					</table>
					
					<table width="98%" align="center"  class="tb_button">
						<tr >
							<td>
								<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('awardInfo');try{top.resizeFrame();}catch(e){};">
								<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('awardInfo','awardradio')">
								<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('awardInfo','awardradio')">
								<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('awardInfo','项目获奖情况')">
							</td>
						</tr>
					</table>	
					